package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhPositionMapper;
import com.laowang.project.system.domain.MyCyhPosition;
import com.laowang.project.system.service.MyCyhPositionService;

/**
 * 头衔Service业务层处理
 *
 * @author laowang
 * @date 2023-08-29
 */
@Service
public class MyCyhPositionServiceImpl implements MyCyhPositionService {
    @Autowired
    private MyCyhPositionMapper myCyhPositionMapper;

    /**
     * 查询头衔
     *
     * @param id 头衔ID
     * @return 头衔
     */
    @Override
    public MyCyhPosition selectMyCyhPositionById(Integer id) {
        return myCyhPositionMapper.selectMyCyhPositionById(id);
    }

    /**
     * 查询头衔列表
     *
     * @param myCyhPosition 头衔
     * @return 头衔
     */
    @Override
    public List<MyCyhPosition> selectMyCyhPositionList(MyCyhPosition myCyhPosition) {
        return myCyhPositionMapper.selectMyCyhPositionList(myCyhPosition);
    }

    /**
     * 新增头衔
     *
     * @param myCyhPosition 头衔
     * @return 结果
     */
    @Override
    public int insertMyCyhPosition(MyCyhPosition myCyhPosition) {
        return myCyhPositionMapper.insertMyCyhPosition(myCyhPosition);
    }

    /**
     * 修改头衔
     *
     * @param myCyhPosition 头衔
     * @return 结果
     */
    @Override
    public int updateMyCyhPosition(MyCyhPosition myCyhPosition) {
        return myCyhPositionMapper.updateMyCyhPosition(myCyhPosition);
    }

    /**
     * 批量删除头衔
     *
     * @param ids 需要删除的头衔ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhPositionByIds(Integer[] ids) {
        return myCyhPositionMapper.deleteMyCyhPositionByIds(ids);
    }

    /**
     * 删除头衔信息
     *
     * @param id 头衔ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhPositionById(Integer id) {
        return myCyhPositionMapper.deleteMyCyhPositionById(id);
    }

    @Override
    public List<MyCyhPosition> selectMyCyhPositionListWeb(MyCyhPosition myCyhPosition) {
        return myCyhPositionMapper.selectMyCyhPositionListWeb(myCyhPosition);
    }
}
